$OpenBSD: patch-demos_unsupported_motifshell_motifshell_c,v 1.3 2012/10/28 11:05:45 sthen Exp $
--- demos/unsupported/motifshell/motifshell.c.orig	Mon Oct 22 15:50:38 2012
+++ demos/unsupported/motifshell/motifshell.c	Wed Oct 24 21:18:59 2012
@@ -585,7 +585,7 @@ void SysCall (Widget widget, char *systemCommand, Bool
   if ((p = fork()) == 0)
     {
       /* note - execlp uses PATH */
-      execlp(systemCommand, systemCommand, NULL);
+      execlp(systemCommand, systemCommand, (void *)NULL);
 
       /* if we fail to find the systemCommand, use 'find' to look for it. */
       fprintf(stderr, "can't find %s\n", systemCommand);
@@ -616,7 +616,7 @@ void SysCall (Widget widget, char *systemCommand, Bool
 	      setenv("UIDPATH", uidpath, 1);
 #endif
 	    }
-	  execl(str, systemCommand, NULL);
+	  execl(str, systemCommand, (void *)NULL);
 	  printf("Still can't find %s...\n", systemCommand);
 	}
       printf("I give up!\n");
